package com.xxgc.cloud.springcloudconsumerorder.controller;

import com.xxgc.cloud.api.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @GetMapping("/getOrderById")
    public Result getOrderById(Integer id){
        return Result.success(id);
    }


    @GetMapping("/addOrder")
    public Result addOrder(String name,Integer money){
        return Result.success(name + money);
    }
}
